<template>
</template>

<script>
export default {
	components: {},
	data() {
		return {}
	},
  beforeCreate() {
    this.$TOOL.current.clear();
    this.$TOOL.data.remove("MENU")
    this.$TOOL.data.remove("PERMISSIONS")
    this.$TOOL.data.remove("DASHBOARDGRID")
    this.$TOOL.data.remove("grid")
  },
	created() {
	},
	async mounted() {
		//请求后台获取单点登录地址
		let gtjaLogin = await this.$API.auth.gtjaLogin.post({});
		console.log(gtjaLogin)
		if (gtjaLogin.code === 2000) {
			window.location.href=gtjaLogin.data;
		} else {
			this.$message.warning("跳转失败,请稍后重试");
		}
	},
	methods: {}
}
</script>
